package com.markyao.recos.conf;

import com.markyao.vo.ConfParam;
import com.markyao.vo.PageParams;
import com.markyao.vo.Result;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface RecosConfService {
    Result autowiredConfig(String appName, String conf, String serverPort, String coname, HttpServletRequest request);

    Result getConfEvent(String appName);

    Result getConfs(@RequestBody PageParams pageParams);

    Result refreshConf(ConfParam conf);
    boolean refreshConf(String appName, Object obj);

    Result refreshOk(String appName);

    Result isRefresh(String appName);

    Result getConfByDataIdAndGroupId(String dataId,String groupId);

    Result registDataIdAndAppName(String appName, String dataId);

    Result getBindConf(String appName);
}
